]> dgit.raspbian.org Git - gnome-shell.git/commit
panel: Disconnect destroy signal handler when needed
authorRay Strode <rstrode@redhat.com>
Tue, 6 Oct 2020 14:29:00 +0000 (10:29 -0400)
committerRay Strode <rstrode@redhat.com>
Wed, 7 Oct 2020 21:03:52 +0000 (17:03 -0400)
commitb41ef2f6e3b2a801331d846ac5fbfd5d349eb4e5
tree2804f3bc01308c06057f1787f248b5fb03a65dbe
parent9963f7ce845362c59dac953a71fbac98f447c13d
panel: Disconnect destroy signal handler when needed

The panel corners try to match their style to the buttons closest
to them. In order to make sure the corner styles stay in sync with
their neighboring buttons, they connect to the style-changed signals
of the buttons.

In order to make sure the style-changed signal handler isn't leaked,
it gets disconnected when the button is destroyed.

Unfortunately, the destroy signal handler connection itself gets leaked!

This commit ensures the destroy signal handler gets disconnected any
time the neighboring button is re-determined.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1460
js/ui/panel.js